package cn.tedu.icop.api.service;

import cn.tedu.icop.api.domain.GunStatusUpdateParam;
import cn.tedu.icop.api.domain.StationVO;
import cn.tedu.icop.api.model.RestResult;
import cn.tedu.icop.api.model.RestResultUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="basic-service",contextId = "stationRemoteService")
public interface StationRemoteService {
    @GetMapping("/basic/station/info/{gunId}")
    RestResult<StationVO> getStationInfo(@PathVariable("gunId") Integer gunId);
    @PutMapping("/basic/gun/status/edit")
    RestResult editGunStatus(@RequestBody GunStatusUpdateParam param);
}
